Equality, Identity, and a Modified Contract

نویسندگان

  • Beate Ritterbach
  • Axel Schmolitzky
چکیده

This paper describes a software-engineering problem, proposes a solution and shows how that solution influences language design. In many object-oriented programming languages, when implementing equality the programmer has to make sure that it obeys a set of rules, called equality contract. Not only is it difficult to adhere to these seemingly simple rules, but the equality contract itself is a source of potential errors. Even if equality complies with the contract, it can lead to faulty, unintended, indeterministic program behavior. This paper proposes a modified contract that avoids these problems. Additionally, the modified contract describes equality unambiguously, and it implies that equality for values and identity for objects can be regarded as the very same concept. Based on the modified contract the language design can be enhanced in a way that supports value equality and object identity more clearly and more safely.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Iranian Women, Inside or Outside of the Stadium? An Anthropological Study on Female Representation of National Identity in Iran

A controversial and comprehensive debate that has resulted in numerous discursive clashes in Iran pertains to the presence of women at stadiums during male soccer matches. Different discourse systems have expressed their own contradictory and opposite stances in terms of whether Iranian women have the right to attend such events inside or outside the stadium, ranging from different notions of r...

متن کامل

Modified-Decoupled Net Present Value: The Intersection of Valuation and Time scaling of Risk in Energy Sector

Although the practical importance of investment analysis in long-term energy investments is well understood, choosing the proper method has always been a dilemma. In this regard, classic evaluation methods, with a history of almost a century, are mostly favored, but using them in the valuation of long-lasting energy projects has particular shortcomings, nevertheless. The drawbacks mainly stem f...

متن کامل

The Role of Social and Place Identities towards Promoting Sustainability Approaches and Behaviors

The concept of sustainability is encouraged to preserve natural resources, social values, cultural heritage, and economic capital, which already exist to make available them for the next generations. Moreover, to enhance the level of sustainability in communities, numerous scholars indicated both individual and community identities play a crucial role. Sustainability is attainable and successfu...

متن کامل

Preliminary Results on a Robust Test for Variances Prepared under Contract No. Da-36-034-ord-1l77 (rd) (experimental Designs Far Industrial Research) = Number of Observations in Samples 1 and 2 Respectively

In testing the equality of several variances, it has been shown that the probabilities given by standard tests, derived on the assumption that the samples are drawn from a normal parent population, are subject to large errors when the normality assumption is not satisfied. Therefore a modified form of the F test for testing equality of two variances, when the means are knoim has been developed....

متن کامل

Identity-based encryption with outsourced equality test in cloud computing

We firstly combine the concepts of public key encryption with equality test (PKEET) and identity-based encryption (IBE) to obtain identity-based encryptionwith equality test (IBEET). Inheriting the advantage of IBE, IBEET can simplify the certificate management of PKEET with all messages encrypted with the receiver’s public identity. In the IBEET scheme, the receiver computes a trapdoor using t...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2015